﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp13
{
    class Program
    {
        static void Main(string[] args)
        {

            //隐式接口
            Class1 class1 = new Class1();
            class1.Id = 1;
            class1.Name = "黄燕鸿";
            class1.Age = 19;
            class1.Hobby = "Playwuman";

            Console.WriteLine("学生学号为：{0}",class1.Id);
            Console.WriteLine("学生姓名为：{0}",class1.Name);
            Console.WriteLine("学生年龄为：{0}",class1.Age);
            Console.WriteLine("学生爱好是：{0}",class1.Hobby);

            Console.WriteLine("黄燕鸿的女朋友如下：");
            class1.GirlFriend();

            Class2 class2 = new Class2();
            class2.Name = "金毛";
            class2.Aggressivity = 0;
            class2.strong = "中";
            Console.WriteLine("动物品种为{0}",class2.Name);
            Console.WriteLine("对人的攻击力{0}",class2.Aggressivity);
            Console.WriteLine("强壮程度：{0}",class2.strong);

            Console.WriteLine("对金毛的描述是");
            class2.Depick();
        }
    }
}
